#依赖的镜像名称
FROM java:8
ENV ARTIFACTID myboot
ENV ARTIFACTVERSION 0.0.1-SNAPSHOT
#切换工作目录
ENV HOME_PATH /home
WORKDIR $HOME_PATH
#相对路径jar,把jar添加到容器中
ADD /$ARTIFACTID-$ARTIFACTVERSION.jar $HOME_PATH/$ARTIFACTID.jar
ENTRYPOINT ["java", "-jar", "myboot.jar"]